package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 居中度计算与摩阻计算条件 对应表 CM_CENTRICITY_FRICTION
public class CM_CentricityFriction extends BABaseEntity {
    @Id
    @GenericGenerator(name="cmFrictionGenerator", strategy="uuid")
    @GeneratedValue(generator="cmFrictionGenerator")
    private String CM_CentricityFriction_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "CASINGFLOAT", length = 10)
    private String casingFloat;

    @Basic
    @Column(name = "COUPLINGLOCATION", length = 50)
    private String couplingLocation;

    @Basic
    @Column(name = "MUDDENSITY")
    private Double mudDensity;

    @Basic
    @Column(name = "ISHOLEDIAMETER", length = 10)
    private String isHoleDiameter;

    @Basic
    @Column(name = "ISORIENTATION", length = 10)
    private String isOrientation;

    @Basic
    @Column(name = "FRICTIONWAY", length = 50)
    private String frictionWay;

    @Basic
    @Column(name = "ISCENTRICITY", length = 10)
    private String isCentricity;

    @Basic
    @Column(name = "ISFLOATCOUPLING", length = 10)
    private String isFloatCoupling;

    @Basic
    @Column(name = "GAP")
    private Double gap;

    @Basic
    @Column(name = "DEPTH")
    private Double depth;

    @Basic
    @Column(name = "COEFFICIENT1")
    private Double coefficient1;

    @Basic
    @Column(name = "COEFFICIENT2")
    private Double coefficient2;

    @Basic
    @Column(name = "AMENDCOEFFICIENT")
    private Double amendCoefficient;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;


}
